﻿@model PageSiteSetIM
@{
    ViewBag.Title = "全局设置";
    ViewBag.PageTitle = ViewBag.Title + "_常规设置";

}



    <div class="panel panel-default">
        <div class="panel-body">

            <!-- Nav tabs -->
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">全局设置</a></li>
                <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">新闻设置</a></li>
                <li role="presentation"><a href="#blog" aria-controls="blog" role="tab" data-toggle="tab">博客设置</a></li>
                <li role="presentation"><a href="#caseSet" aria-controls="blog" role="tab" data-toggle="tab">案例设置</a></li>
            </ul>


            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="home">
                    <br />
                    @Html.Partial("_Site", Model.SiteInfo)
                </div>
                <div role="tabpanel" class="tab-pane" id="profile">
                    <br />
                    @Html.Partial("_Article", Model.ArticleSet)
                </div>
                <div role="tabpanel" class="tab-pane" id="blog">
                    <br />
                    @Html.Partial("_Post", Model.PostSet)
                </div>
                <div role="tabpanel" class="tab-pane" id="caseSet">
                    <br />
                    @Html.Partial("_Case", Model.CaseSet)
                </div>
            </div>
           
        </div>
    </div>



@section footer {
    @Scripts.Render("~/bundles/jqueryvalWithBootstrap")
    <script>
        function onBegin() {
            $("#btnSave i").removeClass("fa-save").addClass("fa-spinner fa-spin")
        }
        function onComplete() {
            $("#btnSave i").removeClass("fa-spinner fa-spin").addClass("fa-save")
        }
        function onSuccess(data) {
        Common.ShowBox(data.Status, data.Message, "@ViewBag.Title");
        //  debugger;
    }
    </script>
}